package org.gnyxy.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.gnyxy.entity.DishInfo;

import java.util.List;

@Mapper
public interface DishInfoMapper {

    void insert(List<DishInfo> dishInfos);

    @Select("select * from dish_info where dish_id = #{dishId} and deleted = 0")
    List<DishInfo> getByDishId(Long dishId);

    void update(DishInfo dishInfo);

}
